class CreateDesires < ActiveRecord::Migration
  def self.up
    create_table :desires do |t|
      t.string :name
      t.string :description
      t.string :status
      t.string :photo_file_name
      t.string :photo_content_type
      t.integer :photo_file_size
      t.datetime :photo_updated_at
      t.timestamps
    end
    create_table :desires_shops, :id => false do |t|
      t.references :desire, :shop
    end
  end

  def self.down
    drop_table :desires
    drop_table :desires_shops
  end
end
